﻿//-----------------------------------------------------------------------
// <copyright file="Op.cs" company="tuliprules.org">
//     Copyright (c) 2011 tuplelister, tuliprules.org.
// </copyright>
// <summary>This is the Op class.</summary>
//-----------------------------------------------------------------------
namespace Tulip.Rules.Models.Rif.Prd
{
    using System;
    using System.ComponentModel;
    using System.Xml.Serialization;

    /// <summary>
    /// Represents an Atom/Expr role for predicates/functions as operations.
    /// </summary>
    [Serializable]
    [DesignerCategory(@"code")]
    [XmlType(AnonymousType = true, Namespace = "http://www.w3.org/2007/rif#")]
    [XmlRoot(Namespace = "http://www.w3.org/2007/rif#", IsNullable = false)]
    public class Op : IRifPrdElement
    {
        /// <summary>
        /// The const field.
        /// </summary>
        [EditorBrowsable(EditorBrowsableState.Never)]
        private Const constField;

        /// <summary>
        /// Gets or sets an individual, function, or predicate symbol, with 'type' 
        /// attribute.
        /// </summary>
        [XmlElement(Order = 0)]
        public Const Const
        {
            get
            {
                return this.constField;
            }

            set
            {
                this.constField = value;
            }
        }
    }
}
